//
//  NSDate+Convenience.h
//  Coding
//
//  Created by Zhan Yu on 15/12/29.
//  Copyright © 2015年 Coding. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (Convenience)

- (NSDate *)offsetYear:(NSUInteger)numYears;
- (NSDate *)offsetMonth:(NSUInteger)numMonths;
- (NSDate *)offsetDay:(NSUInteger)numDays;
- (NSDate *)offsetHours:(NSUInteger)hours;
- (NSUInteger)numDaysInMonth;
- (NSUInteger)firstWeekDayInMonth;
- (NSUInteger)year;
- (NSUInteger)month;
- (NSUInteger)day;

+ (NSDate *)dateStartOfDay:(NSDate *)date;
+ (NSDate *)dateStartOfWeek;
+ (NSDate *)dateEndOfWeek;
@end
